package com.itheima.controller;

import com.itheima.service.CheckGroupItemService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jshstart
 * @creat 2020-11-12 20:26
 */
@RestController
@RequestMapping("/CheckGroupItem")
public class CheckGroupItemController {
    @Reference
    private CheckGroupItemService checkGroupItemService;
    @GetMapping("findItemByGroup/{id}")
    public Integer[]  findItemByGroup(@PathVariable("id") Integer id){
        System.out.println("id = " + id);
       Integer[] checkitemIds=checkGroupItemService.findItemByGroup(id);
       return checkitemIds;
    }
}
